// 该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'

import Page1 from "../components/Page1"
import Page2 from "../components/Page2"
export default new VueRouter({
  routes: [
    {
      path: '/',
      children: [
        {
          path: '/page1',
          component: Page1
        },
        {
          path: '/page2',
          component: Page2
        }
      ]
    },
    {
      path: '/page1',
      component: Page1
    },
    {
      path: '/page2',
      component: Page2
    }
  ]
})